#ifndef __MAIN_H__
#define	__MAIN_H__

#include <stdio.h>
#include <stdint.h>
#include <wiringPi.h>
#include <wiringSerial.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h> 
#include <string.h>
#include "websocket.h"
#include "CoordTransform.h"
#include "BMI160.h"
#include "EKF.h"


typedef struct 
{
	int time;
	int UTC_Hour;
	int UTC_Minute;
	int UTC_Second;
	double Latitude;
	char LatDir;
	double Longitude;
	char LongDir;
	int GNSS_Status;
	int SatelliteNum;
	double HDOP;
	double Altitude;
	double RaletiveHight;
	
}GNGGA_Data;



GNGGA_Data GNGGA_Set(char *buff);
int initUart(void);
void  WebSocketSendData(char* buff,int size);
#endif
